package com.ibeetl.admin.console.web.query.stat;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.Tool;
import com.ibeetl.admin.core.web.query.PageParam;
import org.apache.commons.lang3.StringUtils;

import java.util.Date;

public class BackChargeStatQuery extends PageParam {
	//微信昵称
	@Query(name = "微信昵称", display = true,fuzzy=true)
	private String nickname;
	@Query(name = "充值单号", display = true,fuzzy=true)
	private String orderNo;
	@Query(name = "操作人", display = true,fuzzy=true)
	private String creator;
	@Query(name="操作时间",display=true,type=Query.TYPE_DATE_BETWEEN)
	private String createTimeRange;
	private Date createTimeMin;
	private Date createTimeMax;

	@Query(name="充值时间",display=true,type=Query.TYPE_DATE_BETWEEN)
	private String userChargeTimeRange;
	private Date userChargeTimeMin;
	private Date userChargeTimeMax;

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getCreateTimeRange() {
		return createTimeRange;
	}

	public void setCreateTimeRange(String createTimeRange) {
		this.createTimeRange = createTimeRange;
		if(StringUtils.isEmpty(createTimeRange)) {
			return ;
		}
		Date[] ds = Tool.parseDataRange(createTimeRange);
		this.createTimeMin=ds[0];
		this.createTimeMax =ds[1];
	}

	public Date getCreateTimeMin() {
		return createTimeMin;
	}

	public void setCreateTimeMin(Date createTimeMin) {
		this.createTimeMin = createTimeMin;
	}

	public Date getCreateTimeMax() {
		return createTimeMax;
	}

	public void setCreateTimeMax(Date createTimeMax) {
		this.createTimeMax = createTimeMax;
	}

	public String getUserChargeTimeRange() {
		return userChargeTimeRange;
	}

	public void setUserChargeTimeRange(String userChargeTimeRange) {
		this.userChargeTimeRange = userChargeTimeRange;
		if(StringUtils.isEmpty(userChargeTimeRange)) {
			return ;
		}
		Date[] ds = Tool.parseDataRange(userChargeTimeRange);
		this.userChargeTimeMin=ds[0];
		this.userChargeTimeMax =ds[1];
	}

	public Date getUserChargeTimeMin() {
		return userChargeTimeMin;
	}

	public void setUserChargeTimeMin(Date userChargeTimeMin) {
		this.userChargeTimeMin = userChargeTimeMin;
	}

	public Date getUserChargeTimeMax() {
		return userChargeTimeMax;
	}

	public void setUserChargeTimeMax(Date userChargeTimeMax) {
		this.userChargeTimeMax = userChargeTimeMax;
	}
}
